import 'package:casdon/modules/lifeCircle/data/model/life_subject_module.dart';

class LifeTabState {
  final List<LifeSubjectModule> data;
  int currentIndex = 0;

  LifeTabState copyWith({
    List<LifeSubjectModule>? data,
    int currentIndex = 0,
  }) {
    return LifeTabState(
      data: data ?? this.data,
      currentIndex: currentIndex
    );
  }

  factory LifeTabState.initial() => LifeTabState(data: [], currentIndex: 0);

  LifeTabState({required this.data, int currentIndex = 0});
}
